package com.ruoyi.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 设备故障记录对象 device_fault_record
 * 
 * @author ruoyi
 * @date 2021-03-26
 */
public class DeviceFaultRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备故障记录主键 */
    private Long recordid;

    /** 设备主键 */
    @Excel(name = "设备主键")
    private Long deviceid;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String devicenumber;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String devicename;

    /** 设备完整地址 */
    @Excel(name = "设备完整地址")
    private String deviceaddress;

    /** 场地ID */
    @Excel(name = "场地ID")
    private Long venuesid;

    /** 场地名称 */
    @Excel(name = "场地名称")
    private String venuesname;

    /** 故障信息 */
    @Excel(name = "故障信息")
    private String faultinfo;

    /** 运维人员编号 */
    @Excel(name = "运维人员编号")
    private Long replenishmentid;

    /** 故障时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "故障时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ctime;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date handletime;

    /** 处理状态  1：未处理  2：已处理 */
    @Excel(name = "处理状态  1：未处理  2：已处理")
    private Long handlestatus;

    /** 是否删除 1.未删除 2.已删除 */
    @Excel(name = "是否删除 1.未删除 2.已删除")
    private Long isdel;

    public void setRecordid(Long recordid) 
    {
        this.recordid = recordid;
    }

    public Long getRecordid() 
    {
        return recordid;
    }
    public void setDeviceid(Long deviceid) 
    {
        this.deviceid = deviceid;
    }

    public Long getDeviceid() 
    {
        return deviceid;
    }
    public void setDevicenumber(String devicenumber) 
    {
        this.devicenumber = devicenumber;
    }

    public String getDevicenumber() 
    {
        return devicenumber;
    }
    public void setDevicename(String devicename) 
    {
        this.devicename = devicename;
    }

    public String getDevicename() 
    {
        return devicename;
    }
    public void setDeviceaddress(String deviceaddress) 
    {
        this.deviceaddress = deviceaddress;
    }

    public String getDeviceaddress() 
    {
        return deviceaddress;
    }
    public void setVenuesid(Long venuesid) 
    {
        this.venuesid = venuesid;
    }

    public Long getVenuesid() 
    {
        return venuesid;
    }
    public void setVenuesname(String venuesname) 
    {
        this.venuesname = venuesname;
    }

    public String getVenuesname() 
    {
        return venuesname;
    }
    public void setFaultinfo(String faultinfo) 
    {
        this.faultinfo = faultinfo;
    }

    public String getFaultinfo() 
    {
        return faultinfo;
    }
    public void setReplenishmentid(Long replenishmentid) 
    {
        this.replenishmentid = replenishmentid;
    }

    public Long getReplenishmentid() 
    {
        return replenishmentid;
    }
    public void setCtime(Date ctime) 
    {
        this.ctime = ctime;
    }

    public Date getCtime() 
    {
        return ctime;
    }
    public void setHandletime(Date handletime) 
    {
        this.handletime = handletime;
    }

    public Date getHandletime() 
    {
        return handletime;
    }
    public void setHandlestatus(Long handlestatus) 
    {
        this.handlestatus = handlestatus;
    }

    public Long getHandlestatus() 
    {
        return handlestatus;
    }
    public void setIsdel(Long isdel) 
    {
        this.isdel = isdel;
    }

    public Long getIsdel() 
    {
        return isdel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordid", getRecordid())
            .append("deviceid", getDeviceid())
            .append("devicenumber", getDevicenumber())
            .append("devicename", getDevicename())
            .append("deviceaddress", getDeviceaddress())
            .append("venuesid", getVenuesid())
            .append("venuesname", getVenuesname())
            .append("faultinfo", getFaultinfo())
            .append("replenishmentid", getReplenishmentid())
            .append("ctime", getCtime())
            .append("handletime", getHandletime())
            .append("handlestatus", getHandlestatus())
            .append("isdel", getIsdel())
            .toString();
    }
}
